//
//  NSString+DZCategory.h
//  Meidaojia
//
//  Created by Darren on 15/5/20.
//  Copyright (c) 2015年 Darren Zheng. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface NSString (DZCategory)

// SRC: http://stackoverflow.com/questions/2018550/how-do-i-create-an-md5-hash-of-a-string-in-cocoa
- (NSString *)MD5String;

// this method is for calculating the actual size for a given width on a multi-line label
- (CGSize)sizeForMaxWidth:(CGFloat)width
                     font:(UIFont *)font
            numberOfLines:(int)numberOfLines;
- (CGSize)sizeForMaxWidth:(CGFloat)width
                     font:(UIFont *)font;
- (CGSize)sizeWithFont:(UIFont *)font;
- (NSMutableDictionary *)queryComponents;

@end
